package com.workflow.sdk.domain.convert;

import com.workflow.sdk.domain.model.entity.dto.WorkflowExecuteDto;
import com.workflow.sdk.infra.repository.model.WorkflowExecutePo;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface WorkflowExecuteConverter {

    /** 默认的方式 **/
    WorkflowExecuteConverter INSTANCE = Mappers.getMapper(WorkflowExecuteConverter.class);

    @Mappings({
    })
    WorkflowExecuteDto workflowExecutePoToDto(WorkflowExecutePo workflowExecutePo);

    @Mappings({
    })
    List<WorkflowExecuteDto> workflowExecutePoToDto(List<WorkflowExecutePo> workflowExecutePos);

    @Mappings({
    })
    WorkflowExecutePo workflowExecuteDtoToPo(WorkflowExecuteDto workflowExecuteDto);

    @Mappings({
    })
    List<WorkflowExecutePo> workflowExecuteDtoToPo(List<WorkflowExecuteDto> workflowExecuteDtos);
}
